package com.twu.biblioteca;

/**
 * Created with IntelliJ IDEA.
 * User: dpeletei
 * Date: 23.05.13
 * Time: 16:27
 */
public class User {

    private final String userName;
    private final String password;
    private final String name;
    private final String email;
    private final String phoneNumber;

    User(String pUserName, String pPassword, String pName, String pEmail, String pPhoneNumber){
        userName = pUserName;
        password = pPassword;
        name = pName;
        email = pEmail;
        phoneNumber = pPhoneNumber;
    }

    public boolean verifyUserPassword(String pUserName, String pPassword) {
        return (this.userName.equals(pUserName) && this.password.equals(pPassword));

    }

    public String printUserDetails(){
        String user = this.name + "\t" + this.email + "\t" + this.phoneNumber;
        return user;
    }

    public String getUserName() {
        return userName;
    }
}
